package com.bw.base.net

import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.resource.bitmap.RoundedCorners

object ImageUtils {
    //普通的图片加载
    fun loadImage(rid:String,iv:ImageView){
        Glide.with(iv).load(rid).into(iv)
    }
    //圆形图片加载
    fun loadCircleImage(rid: String, iv: ImageView){
        Glide.with(iv).load(rid).circleCrop().into(iv)
    }
    //圆角图片加载
    fun loadRoundImage(rid:String,iv: ImageView){
        Glide.with(iv).load(rid).transform(RoundedCorners(33)).into(iv)
    }

}